package com.mediastory.spsserver.category.service;

import java.util.List;
import java.util.Map;

import com.mediastory.spsserver.category.domain.Category;
import com.mediastory.spsserver.content.domain.Content;

/**
 * @author Jaewon Choi
 *
 */
public interface CategorySvc {
	
	public List<Category> findbyList(Map<String, Object> condition) throws Exception;
	
	public Map<String, Object> findbyListPaging(Map<String, Object> condition) throws Exception;
	
	public Category findby(Integer idx) throws Exception;
	
	public Category add(Category category) throws Exception;
	
	public Category modify(Category category) throws Exception;
	
	public int remove(Map<String, Object> condition) throws Exception;
	
	public String findbyChkDupl(Map<String, Object> condition) throws Exception;
	
	//dispOrder 설정
	public List<Content> findbyListInCont(Map<String, Object> condition) throws Exception;
	
	public Map<String, Object> findbyListPagingInCont(Map<String, Object> condition) throws Exception;
	
	public List<Content> findbyListOutCont(Map<String, Object> condition) throws Exception;
	
	public Integer addDispOrder(Map<String, Object> condition) throws Exception;
	
	public Integer removeDispOrder(Map<String, Object> condition) throws Exception;
	
}